Skip to content

Wraps for open and write to file #1117

Merged
merged 12 commits into from
Oct 24, 2019
Merged

Conversation

M-ximus
Copy link
Contributor

@M-ximus M-ximus commented Oct 21, 2019

Fixes #1096

@pavelkryukov
Copy link
Member

Could you please provide more meaningful name for your pull request?

@M-ximus M-ximus changed the title M ximus Wraps for open and write Oct 21, 2019
@M-ximus M-ximus changed the title Wraps for open and write Wraps for open and write to file Oct 21, 2019
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
}

static uint64 open_file(System* sys, uint64 filename_ptr, uint64 flags)
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these functions be members of System class?

@codecov
Copy link

codecov bot commented Oct 22, 2019

Codecov Report

Merging #1117 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1117   +/-   ##
=======================================
  Coverage   99.63%   99.63%           
=======================================
  Files          90       90           
  Lines        3004     3004           
=======================================
  Hits         2993     2993           
  Misses         11       11

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 44df651...f83560d. Read the comment docs.

simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
Wraps for open, close, write and read that return a Trap. Tests for
opening and writing to file were separated from big I/O file test.
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
simulator/kernel/mars/t/unit_test.cpp Outdated Show resolved Hide resolved
@pavelkryukov pavelkryukov merged commit 5f9b3e3 into MIPT-ILab:master Oct 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix 'Duplicate Code' issue in simulator\kernel\mars\t\unit_test.cpp
2 participants