We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62b7b1f commit da5973aCopy full SHA for da5973a
tools/testing/selftests/damon/sysfs.py
@@ -252,6 +252,20 @@ def main():
252
253
assert_ctxs_committed(kdamonds.kdamonds[0].contexts, status['contexts'])
254
255
+ # test online commitment of minimum context.
256
+ context = _damon_sysfs.DamonCtx()
257
+ context.idx = 0
258
+ context.kdamond = kdamonds.kdamonds[0]
259
+ kdamonds.kdamonds[0].contexts = [context]
260
+ kdamonds.kdamonds[0].commit()
261
+
262
+ status, err = dump_damon_status_dict(kdamonds.kdamonds[0].pid)
263
+ if err is not None:
264
+ print(err)
265
+ exit(1)
266
267
+ assert_ctxs_committed(kdamonds.kdamonds[0].contexts, status['contexts'])
268
269
kdamonds.stop()
270
271
if __name__ == '__main__':
0 commit comments