// We should receive NAK, as the service has a dependency:
bp_sys::extract_written_data(fd, wdata);
assert(wdata.size() == 1);
- assert(wdata[0] = DINIT_RP_NAK);
+ assert(wdata[0] == DINIT_RP_NAK);
// Get handle for service 2:
cmd = { DINIT_CP_FINDSERVICE };
// We should receive ACK:
bp_sys::extract_written_data(fd, wdata);
assert(wdata.size() == 1);
- assert(wdata[0] = DINIT_RP_NAK);
+ assert(wdata[0] == DINIT_RP_ACK);
// Now try to unload s1 again:
// We should receive ACK:
bp_sys::extract_written_data(fd, wdata);
assert(wdata.size() == 1);
- assert(wdata[0] = DINIT_RP_NAK);
+ assert(wdata[0] == DINIT_RP_ACK);
// If we try to FIND service 1 now, it should not be there:
cmd = { DINIT_CP_FINDSERVICE };
bp_sys::extract_written_data(fd, wdata);
assert(wdata.size() == 1);
- assert(wdata[0] = DINIT_RP_NOSERVICE);
+ assert(wdata[0] == DINIT_RP_NOSERVICE);
delete cc;
}