diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-04-26 11:55:14 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-04-26 11:55:14 +0000 |
commit | c778e486d25070979c09adde5f919bf44357c4ae (patch) | |
tree | 35895495b72c05e89c88143c7a37d341ae43985c /lib/common/Test.h | |
parent | cda45c55312a00658b286ec106ce42a48ec2984b (diff) |
Show expected and actual return codes from shell commands in tests.
Diffstat (limited to 'lib/common/Test.h')
-rw-r--r-- | lib/common/Test.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/common/Test.h b/lib/common/Test.h index ce967041..fc77a493 100644 --- a/lib/common/Test.h +++ b/lib/common/Test.h @@ -18,14 +18,14 @@ #define BBSTORED "..\\..\\bin\\bbstored\\bbstored.exe" #define BBACKUPQUERY "..\\..\\bin\\bbackupquery\\bbackupquery.exe" #define BBSTOREACCOUNTS "..\\..\\bin\\bbstoreaccounts\\bbstoreaccounts.exe" -#define TEST_RETURN(actual, expected) TEST_THAT(actual == expected); +#define TEST_RETURN(actual, expected) TEST_EQUAL(expected, actual); #else #define BBACKUPCTL "../../bin/bbackupctl/bbackupctl" #define BBACKUPD "../../bin/bbackupd/bbackupd" #define BBSTORED "../../bin/bbstored/bbstored" #define BBACKUPQUERY "../../bin/bbackupquery/bbackupquery" #define BBSTOREACCOUNTS "../../bin/bbstoreaccounts/bbstoreaccounts" -#define TEST_RETURN(actual, expected) TEST_THAT(actual == expected*256); +#define TEST_RETURN(actual, expected) TEST_EQUAL(expected << 8, actual); #endif extern int failures; |