summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-05-13 18:17:52 +0200
committerHaru <haru@dotalux.com>2014-05-13 18:17:52 +0200
commit5d67f33135a5305665f78307e03fa9aee7aa544b (patch)
tree831248cdf9994ccb9e44751d0d68220631c6d4dd /src/test
parentc03094034f5338016221775bce4b39a0e9b75ee6 (diff)
downloadhercules-5d67f33135a5305665f78307e03fa9aee7aa544b.tar.gz
hercules-5d67f33135a5305665f78307e03fa9aee7aa544b.tar.bz2
hercules-5d67f33135a5305665f78307e03fa9aee7aa544b.tar.xz
hercules-5d67f33135a5305665f78307e03fa9aee7aa544b.zip
Removed trailing whitespace (sources)
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_spinlock.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/test/test_spinlock.c b/src/test/test_spinlock.c
index 878ee8bab..0c0e3e2ae 100644
--- a/src/test/test_spinlock.c
+++ b/src/test/test_spinlock.c
@@ -8,13 +8,13 @@
#include <stdio.h>
#include <stdlib.h>
-//
-// Simple test for the spinlock implementation to see if it works properly..
+//
+// Simple test for the spinlock implementation to see if it works properly..
//
-#define THRC 32 //thread Count
+#define THRC 32 //thread Count
#define PERINC 100000
#define LOOPS 47
@@ -66,7 +66,7 @@ int do_init(int argc, char **argv){
while(1){
- if(InterlockedCompareExchange(&done_threads, THRC, THRC) == THRC)
+ if(InterlockedCompareExchange(&done_threads, THRC, THRC) == THRC)
break;
rathread_yield();
@@ -86,7 +86,7 @@ int do_init(int argc, char **argv){
if(ok != LOOPS){
- ShowFatalError("Test failed.\n");
+ ShowFatalError("Test failed.\n");
exit(1);
}else{
ShowStatus("Test passed.\n");
@@ -103,11 +103,12 @@ void do_abort(){
void set_server_type(){
- SERVER_TYPE = ATHENA_SERVER_NONE;
+ SERVER_TYPE = SERVER_TYPE_UNKNOWN;
}//end: set_server_type()
-void do_final(){
+int do_final(){
+ return EXIT_SUCCESS;
}//end: do_final()