Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit a975138

Browse files
committed
cpp_test_suite/asyn/asyn_write_cb.cpp: Use comparison instead of assignment
Found with GCC 10.1.0.
1 parent 5cf9ba1 commit a975138

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp_test_suite/asyn/asyn_write_cb.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ int main(int argc, char **argv)
318318
assert ( cb.attr_failed == true );
319319
assert ( nb_not_arrived >= 2);
320320
assert ( cb.nb_attr == 1);
321-
assert ( cb.faulty_attr_nb = 1);
321+
assert ( cb.faulty_attr_nb == 1);
322322

323323
cout << " Device exception with non blocking get_asynch_replies --> OK" << std::endl;
324324

@@ -349,7 +349,7 @@ int main(int argc, char **argv)
349349
assert( cb.attr_failed == true );
350350
assert(cb.cb_executed == 1);
351351
assert( nb_not_arrived >= 2);
352-
assert( cb.nb_attr = 1);
352+
assert( cb.nb_attr == 1);
353353

354354
cout << " Device exception with blocking get_asynch_replies with call timeout --> OK" << std::endl;
355355

@@ -367,7 +367,7 @@ int main(int argc, char **argv)
367367

368368
assert(cb.attr_failed == true );
369369
assert(cb.cb_executed == 1);
370-
assert( cb.nb_attr = 1);
370+
assert( cb.nb_attr == 1);
371371

372372
cout << " Device exception with blocking get_asynch_replies --> OK" << std::endl;
373373

0 commit comments

Comments
 (0)