Skip to content

Commit

Permalink
Fix wrong use or return val as error code in test
Browse files Browse the repository at this point in the history
init_atom() does not return an error code
  • Loading branch information
jhenin committed Sep 4, 2024
1 parent 74e345e commit a3a1c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/run_colvars_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern "C" int main(int argc, char *argv[]) {
cvm::log("Reading trajectory for " + cvm::to_str(natoms)
+ " atoms from XYZ file " + argv[2]);
for (int ai = 0; ai < natoms; ai++) {
err |= proxy->init_atom(ai+1);
proxy->init_atom(ai+1);
}
int io_err = 0;
while (!io_err) {
Expand Down

0 comments on commit a3a1c8c

Please sign in to comment.