Files
mckernel/test/issues/1381
Yoshihisa Morizumi b380f0790d test: shmobj: fix test program for #1381
Limitations tested in #1381 have been removed in #1458

Change-Id: I35b7ee058a75abc98f2a2ad783fdba46087b0716
Refs: #1519
2021-03-03 05:07:49 +00:00
..
2021-03-03 05:07:49 +00:00
2021-03-03 05:07:49 +00:00
2021-03-03 05:07:49 +00:00
2021-03-03 05:07:49 +00:00

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
【Issue#1381 動作確認】
□ テスト内容
1. 以下のケースでMAP_SHARED指定のmmapをした領域の、
   最後のスモールページ1ページ分をmunmapし、期待通りの動作となることを確認する
  - MAP_HUGETLB指定  munmapが-1を返し、errnoにEINVALがセットされる
  - ラージページサイズの倍数のサイズ  munampが-1を返し、errnoにEINVALがセットされる
  - ラージページサイズの倍数ではないサイズ munmapが成功する

2. Issueで報告された以下のLTPを実行し、症状が発生しないことを確認する
  - futex_wake04

3. 以下のLTPを用いて既存のshm機能に影響が無いことを確認
  - shmat01
  - shmat02
  - shmat03
  - shmctl01
  - shmctl02
  - shmctl03
  - shmctl04
  - shmdt01
  - shmdt02
  - shmget01
  - shmget02
  - shmget03
  - shmget04
  - shmget05

□ 実行手順
$ make test

McKernelのインストール先や、OSTEST, LTPの配置場所は、
$HOME/.mck_test_config を参照している
.mck_test_config は、McKernelをビルドした際に生成されるmck_test_config.sample ファイルを
$HOMEにコピーし、適宜編集する

□ 実行結果
x86_64_result.log aarch64_result.log 参照。
すべての項目をPASSしていることを確認。