]> Kevux Git Server - fll/commit
Bugfix: Dead code in return status handling.
authorKevin Day <kevin@kevux.org>
Sun, 5 Mar 2023 20:51:19 +0000 (14:51 -0600)
committerKevin Day <kevin@kevux.org>
Sun, 5 Mar 2023 23:26:03 +0000 (17:26 -0600)
commit86d3a14483202cea61464e43cc4b214a9523c10f
treea421596775be71049924dc8bbfa2b836bd2ef74a
parent1f909cf5a5826d196b87d6a8c67973c672056eff
Bugfix: Dead code in return status handling.

The fake_make_operate_process_return() has dead code where it checks for the inverse of the return_code in two spots.
The first of which always returns.
The second case can never be reached.

Redesign the function.
This success/failure behavior should be preserved with this change.

Add a simple example fakefile for testing the return code value.
level_3/fake/c/private-make-operate_process.c
level_3/fake/c/private-make-operate_process.h
level_3/fake/c/private-make-operate_process_type.c
level_3/fake/data/projects/example/return_code.fakefile [new file with mode: 0644]