Searched refs:CHK (Results 1 - 25 of 52) sorted by path

123

/haiku/headers/tools/cppunit/
H A DTestUtils.h10 #define CHK CPPUNIT_ASSERT macro
/haiku/src/tests/add-ons/kernel/drivers/tty/
H A Dtty-test.cpp50 #define CHK(condition) assert(condition) macro
52 #define CHK_ALIVE(thread) CHK((thread)->IsAlive())
53 #define CHK_DEAD(thread) CHK(!(thread)->IsAlive())
480 CHK((bytesRead < 0));
549 CHK((bytesWritten < 0));
613 CHK(result > 0);
614 CHK(selectSet == compareSet);
685 CHK(result > 0);
686 CHK(selectSet == compareSet);
798 CHK(resul
[all...]
/haiku/src/tests/kits/app/bapplication/
H A DAppQuitRequestedTester.cpp38 CHK(runner.GetOutput(&buffer) == B_OK);
42 CHK(buffer == expectedOutput);
65 CHK(runner.Run("AppQuitRequestedTestApp1") == B_OK);
H A DAppQuitTester.cpp40 CHK(runner.GetOutput(&buffer) == B_OK);
44 CHK(buffer == expectedOutput);
61 CHK(runner.Run("AppQuitTestApp1") == B_OK);
84 CHK(runner.Run("AppQuitTestApp2") == B_OK);
107 CHK(runner.Run("AppQuitTestApp3") == B_OK);
132 CHK(runner.Run("AppQuitTestApp4") == B_OK);
136 CHK(runner.GetOutput(&buffer) == B_OK);
141 CHK(errorIndex >= 0);
143 CHK(errorEnd >= 0);
148 CHK(buffe
[all...]
H A DAppRunTester.cpp38 CHK(runner.GetOutput(&buffer) == B_OK);
42 CHK(buffer == expectedOutput);
65 CHK(runner1.Run("AppRunTestApp1") == B_OK);
66 CHK(runner2.Run("AppRunTestApp1") == B_OK);
103 CHK(runner1.Run("AppRunTestApp1", "a b") == B_OK);
104 CHK(runner2.Run("AppRunTestApp1", "c d e") == B_OK);
131 CHK(runner1.Run("AppRunTestApp2") == B_OK);
132 CHK(runner2.Run("AppRunTestApp2") == B_OK);
168 CHK(runner1.Run("AppRunTestApp2", "a b") == B_OK);
169 CHK(runner
[all...]
H A DBApplicationTester.cpp39 CHK(runner.Run(app) == B_OK);
43 CHK(runner.GetOutput(&buffer) == B_OK);
47 CHK(buffer == expectedResult);
/haiku/src/tests/kits/app/bclipboard/
H A DBClipboardTester.cpp13 #define CHK CPPUNIT_ASSERT macro
35 CHK(false);
38 CHK(strcmp(clip.Name(),"system") == 0);
52 CHK(strcmp(clip.Name(),name) == 0);
H A DCountTester.cpp12 #define CHK CPPUNIT_ASSERT macro
35 CHK(clip.LocalCount() == 0);
60 CHK(clip.LocalCount() == oldCount + 1);
77 CHK(clipB.Lock());
85 CHK(clipA.Lock());
88 CHK(clipA.LocalCount() == oldCount + 1);
89 CHK(clipB.LocalCount() == oldCount + 1);
128 CHK(clipA.LocalCount() == oldCount + 1);
129 CHK(clipB.LocalCount() == oldCount + 2);
165 CHK(clip
[all...]
H A DLockTester.cpp12 #define CHK CPPUNIT_ASSERT macro
35 CHK(clip.Lock());
64 CHK(thread >= B_OK);
67 CHK(clip->Lock() == false);
81 CHK(clip.IsLocked());
94 CHK(!clip.IsLocked());
108 CHK(clip.IsLocked());
110 CHK(!clip.IsLocked());
H A DReadWriteTester.cpp13 #define CHK CPPUNIT_ASSERT macro
39 CHK(false);
58 CHK(clip.Clear() == B_OK);
60 CHK(data->IsEmpty());
75 CHK(false);
112 CHK(clip.Revert() == B_OK);
116 CHK(strcmp(str,"Revert2") == 0);
133 CHK(false);
159 CHK(clipA.Commit() == B_OK);
168 CHK(strcm
[all...]
/haiku/src/tests/kits/app/bmessagerunner/
H A DGetInfoTester.cpp56 CHK(runner.InitCheck() == B_OK);
59 CHK(runner.GetInfo(&readInterval, NULL) == B_OK);
60 CHK(readInterval == interval);
61 CHK(runner.GetInfo(NULL, &readCount) == B_OK);
62 CHK(readCount == count);
63 CHK(runner.GetInfo(NULL, NULL) == B_OK);
84 CHK(runner.InitCheck() == B_ERROR);
87 CHK(runner.GetInfo(&readInterval, NULL) == B_BAD_VALUE);
88 CHK(runner.GetInfo(NULL, &readCount) == B_BAD_VALUE);
89 CHK(runne
[all...]
/haiku/src/tests/kits/app/bmessenger/
H A DBMessengerTester.cpp17 #define CHK CPPUNIT_ASSERT macro
42 CHK(messenger.IsValid() == valid);
43 CHK(messenger.IsTargetLocal() == local);
45 CHK(messenger.Target(&resultLooper) == handler);
46 CHK(resultLooper == looper);
48 CHK(messenger.Team() == team || messenger.Team() == altTeam);
53 CHK(messenger.Team() == team);
74 CHK(messenger.IsValid() == false);
75 CHK(messenger.IsTargetLocal() == false);
77 CHK(messenge
[all...]
H A DLockTargetTester.cpp70 CHK(messenger.LockTarget() == false);
86 CHK(messenger.LockTarget() == true);
87 CHK(looper->IsLocked() == true);
89 CHK(looper->IsLocked() == false);
107 CHK(looper->Lock());
112 CHK(messenger.LockTarget() == true);
113 CHK(looper->IsLocked() == true);
115 CHK(looper->IsLocked() == false);
130 CHK(fLooper->Lock() == true);
152 CHK(messenge
[all...]
H A DLockTargetWithTimeoutTester.cpp69 CHK(messenger.LockTargetWithTimeout(0) == B_BAD_VALUE);
85 CHK(messenger.LockTargetWithTimeout(0) == B_OK);
86 CHK(looper->IsLocked() == true);
88 CHK(looper->IsLocked() == false);
106 CHK(looper->Lock());
111 CHK(messenger.LockTargetWithTimeout(0) == B_OK);
112 CHK(looper->IsLocked() == true);
114 CHK(looper->IsLocked() == false);
129 CHK(fLooper->Lock() == true);
151 CHK(messenge
[all...]
H A DMessengerAssignmentTester.cpp71 CHK(&(messenger = from) == &messenger);
72 CHK(messenger.IsValid() == false);
73 CHK(messenger.IsTargetLocal() == false);
75 CHK(messenger.Target(&looper) == NULL);
76 CHK(looper == NULL);
77 CHK(messenger.Team() == -1);
97 CHK(from.IsValid() == true);
98 CHK(from.IsTargetLocal() == true);
100 CHK(from.Target(&resultLooper) == NULL);
101 CHK(resultLoope
[all...]
H A DMessengerComparissonTester.cpp114 CHK(a == b);
115 CHK(b == a);
116 CHK(!(a != b));
117 CHK(!(b != a));
136 CHK(a != b);
137 CHK(b != a);
138 CHK(!(a == b));
139 CHK(!(b == a));
165 CHK(looper1->Lock());
179 CHK(looper
[all...]
H A DSMReplyTarget.cpp19 CHK(fLooper->Lock());
H A DSMTarget.cpp74 CHK(fLooper->Lock());
142 CHK(fLocalPort >= 0);
157 CHK(_GetReply(SMRT_INIT, &initData, sizeof(smrt_init)) == B_OK);
176 CHK(_SendRequest(SMRT_GET_READY, &data, sizeof(smrt_get_ready)) == B_OK);
190 CHK(_SendRequest(SMRT_DELIVERY_SUCCESS_REQUEST) == B_OK);
192 CHK(_GetReply(SMRT_DELIVERY_SUCCESS_REPLY, &data,
H A DSendMessageTester.cpp108 CHK(actualResult == result);
109 CHK(target->DeliverySuccess() == deliverySuccess);
110 CHK(actualReplySuccess == replySuccess);
111 CHK(actualDuration > duration - JITTER
H A DTargetTester.cpp16 #define CHK CPPUNIT_ASSERT macro
39 CHK(messenger.IsTargetLocal() == false);
54 CHK(messenger.IsTargetLocal() == true);
71 CHK(looper->Lock());
76 CHK(messenger.IsTargetLocal() == true);
88 CHK(messenger.IsTargetLocal() == false);
100 CHK(messenger.IsTargetLocal() == false);
111 CHK(messenger.Target(NULL) == NULL);
127 CHK(messenger.Target(NULL) == NULL);
145 CHK(loope
[all...]
/haiku/src/tests/kits/app/broster/
H A DBroadcastTester.cpp64 CHK(entry.SetTo(filename, traverse) == B_OK);
65 CHK(entry.GetRef(&ref) == B_OK);
77 CHK(find_test_app("RosterBroadcastTestApp1", &testApp) == B_OK);
82 CHK(file.SetTo(filename, B_READ_WRITE) == B_OK);
84 CHK(appFileInfo.SetTo(&file) == B_OK);
86 CHK(appFileInfo.SetSignature(signature) == B_OK);
87 CHK(appFileInfo.SetAppFlags(appFlags) == B_OK);
89 CHK(BMimeType(signature).Install() == B_OK);
152 CHK(be_roster->Broadcast(NULL) == B_BAD_VALUE);
170 CHK(contex
[all...]
H A DGetAppInfoTester.cpp76 CHK(roster.GetAppInfo((const char*)NULL, NULL) == B_BAD_VALUE);
77 CHK(roster.GetAppInfo((const char*)NULL, &info) == B_BAD_VALUE);
80 CHK(roster.GetAppInfo("application/x-vnd.obos-app-run-testapp1",
95 CHK(roster.GetAppInfo("application/x-vnd.obos-app-run-testapp1", &info)
117 CHK(runner1.Run("AppRunTestApp1") == B_OK);
118 CHK(runner2.Run("AppRunTestApp1") == B_OK);
122 CHK(roster.GetAppInfo(signature, &info1) == B_OK);
123 CHK(check_app_info(info1, runner1, signature, flags)
128 CHK(roster.GetAppInfo(signature, &info2) == B_OK);
129 CHK(check_app_inf
[all...]
H A DGetAppListTester.cpp54 CHK(base.ItemAt(i) == toCheck.ItemAt(i));
55 CHK(base.ItemAt(i) == extendedBase.ItemAt(i));
61 CHK(toCheckCount == extendedBaseCount + expectedCount);
66 CHK(contains_list(toCheck, list));
67 CHK(contains_list(list, toCheck));
122 CHK(runner1.Run("AppRunTestApp1") == B_OK);
123 CHK(runner2.Run("AppRunTestApp2") == B_OK);
124 CHK(runner3.Run("BMessengerTestApp1") == B_OK);
177 CHK(runner.Run("AppRunTestApp1") == B_OK);
204 CHK(runner
[all...]
H A DIsRunningTester.cpp42 CHK(roster.IsRunning((const char*)NULL) == false);
55 CHK(roster.IsRunning("application/x-vnd.obos-app-run-testapp1") == false);
69 CHK(runner1.Run("AppRunTestApp1") == B_OK);
70 CHK(runner2.Run("AppRunTestApp1") == B_OK);
73 CHK(roster.IsRunning("application/x-vnd.obos-app-run-testapp1") == true);
76 CHK(roster.IsRunning("application/x-vnd.obos-app-run-testapp1") == true);
79 CHK(roster.IsRunning("application/x-vnd.obos-app-run-testapp1") == false);
92 CHK(roster.IsRunning((entry_ref*)NULL) == false);
105 CHK(find_test_app("AppRunTestApp1", &ref) == B_OK);
106 CHK(roste
[all...]
H A DTeamForTester.cpp42 CHK(roster.TeamFor((const char*)NULL) == B_BAD_VALUE);
55 CHK(roster.TeamFor("application/x-vnd.obos-app-run-testapp1") == B_ERROR);
70 CHK(runner1.Run("AppRunTestApp1") == B_OK);
71 CHK(runner2.Run("AppRunTestApp1") == B_OK);
75 CHK(team == runner1.Team() || team == runner2.Team());
78 CHK(roster.TeamFor("application/x-vnd.obos-app-run-testapp1")
82 CHK(roster.TeamFor("application/x-vnd.obos-app-run-testapp1") == B_ERROR);
95 CHK(roster.TeamFor((entry_ref*)NULL) == B_BAD_VALUE);
108 CHK(find_test_app("AppRunTestApp1", &ref) == B_OK);
109 CHK(roste
[all...]

Completed in 137 milliseconds

123