From 196f0bb081db462bc0f9a9462f47c9639101204b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 18 Mar 2012 16:45:04 +0000 Subject: [rng] Allow entropy_enable() to return an error Signed-off-by: Michael Brown --- src/tests/entropy_sample.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tests') diff --git a/src/tests/entropy_sample.c b/src/tests/entropy_sample.c index e00bb484e..9e75b4e9b 100644 --- a/src/tests/entropy_sample.c +++ b/src/tests/entropy_sample.c @@ -48,7 +48,8 @@ static void entropy_sample_test_exec ( void ) { for ( i = 0 ; i < ( SAMPLE_COUNT / SAMPLE_BLOCKSIZE ) ; i++ ) { /* Collect one block of samples */ - entropy_enable(); + rc = entropy_enable(); + ok ( rc == 0 ); for ( j = 0 ; j < SAMPLE_BLOCKSIZE ; j++ ) { rc = get_noise ( &samples[j] ); ok ( rc == 0 ); -- cgit v1.2.3-55-g7522